<?php
/**
 * The template for displaying Category Archive pages.
 *
 * @package toekneestuck
 * @subpackage toekneestuck
 * @since toekneestuck Ten 1.0
 */

get_header(); ?>
<div class="container">
	<div class="row clearfix">
		<section class="eightcol list">
			<h1 class="page-title"><?php printf( __( '%s Archives', 'toeknee' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
			<?php
				$category_description = category_description();
				if ( ! empty( $category_description ) )
					echo '<div class="archive-meta">' . $category_description . '</div>';

				/* Run the loop for the category page to output the posts.
				 * If you want to overload this in a child theme then include a file
				 * called loop-category.php and that will be used instead.
				 */
				get_template_part( 'loop', 'category' );
			?>
		</section>
		<aside class="fourcol last">
			<?php get_sidebar(); ?>
		</aside>
	</div>
</div>
<?php get_footer(); ?>
